import Vant from 'vant';
import 'vant/lib/index.css';

export default {
    devBaseUrl: "http://127.0.0.1:3030",
    testBaseUrl: "http://127.0.0.1:3000/api/json/test",
    prodBaseUrl: "http://127.0.0.1:3000/api/json/prod",
    aliOss: {
        host: 'https://losta.oss-cn-shanghai.aliyuncs.com',
    },
    apiList: {
        add: '/user/add',
        login: '/user/login',
        push: '/home/push',
        token: '/home/token',
        tab: "/home/tab",
        notice: "/home/notice",//首页
        info: "/home/info",//详情
        Statistics:"/user/Statistics",
        edit:"/user/edit",
        search:"/home/search",
        history:"/user/history",//历史记录
        changeStatus:"/user/changeStatus",//接口状态
    },
    vueComponents: [  ],
    vuePlugs: [ Vant ],
    checkEnvironment() {
        switch (process.env.NODE_ENV) {
            case "development":
                return this.devBaseUrl
                break;
            case "test":
                return this.testBaseUrl
                break;
            case "production":
                return this.prodBaseUrl
                break;
        }
    }
}